	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	</head>
<?php
	include ('include/config.php');
	include ('include/conn.php');
		$id=$_GET['id']; 
		//~ var_dump ($id);
		$content = $_POST['content'];
		$name=$_POST['name'];
		$qq=$_POST['qq'];
		$time=$_POST['time'];
		$ip=$_POST['ip'];
	//~ $getid="select * from tab where id=".$id;
	$sql="UPDATE `sdb`.`tab` SET `content` = '$content ',
`name` = '$name',
`qq` = '$qq' ,
`time` = '$time' ,
`ip` = '$ip'  WHERE `tab`.`id` =".$id.' LIMIT 1';

var_dump($sql);
		$res=mysql_query($sql);
		if($res)
		{
			echo <<<aaa
			<script>
			alert('修改成功')
			location.href='admin_index.php'
			</script>
aaa;

		}
?>